#pragma once

#include <cmath>

#include "Macro.h"
#include "Util.h"
#include "TransmitFunction.h"


/************************************************************************/
/* Sigmod transmit function                                             */
/************************************************************************/
class Sigmod :
    public TransmitFunction
{
public:

    Sigmod(void)
    {
    }
public:

    ~Sigmod(void)
    {
    }

    double F(double x)
    {
        return 1.0/(1+exp(-x));
    }

    double PartialF(double x)
    {
        return sqr(F(x))*exp(-x);
    }
};
